package com.kanche.bigbaby.bean;

import org.json.*;

import java.io.Serializable;


public class ResponseMcSigninBean extends ResponseBaseBean implements Serializable{
	
    private boolean isUpstream;
    private String mobile;
    private String userId;
    private boolean isDownstream;
    private String token;
    private String name;
    private User user;
    
    
	public ResponseMcSigninBean () {
		
	}	
        
    public ResponseMcSigninBean (JSONObject json) {
    
        this.isUpstream = json.optBoolean("isUpstream");
        this.mobile = json.optString("mobile");
        this.userId = json.optString("userId");
        this.isDownstream = json.optBoolean("isDownstream");
        this.token = json.optString("token");
        this.name = json.optString("name");
        this.user = new User(json.optJSONObject("user"));

    }
    
    public boolean getIsUpstream() {
        return this.isUpstream;
    }

    public void setIsUpstream(boolean isUpstream) {
        this.isUpstream = isUpstream;
    }

    public String getMobile() {
        return this.mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public boolean getIsDownstream() {
        return this.isDownstream;
    }

    public void setIsDownstream(boolean isDownstream) {
        this.isDownstream = isDownstream;
    }

    public String getToken() {
        return this.token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }


    
}
